package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @email: pengyujun53@163.com
 * @author: peng_YuJun
 * @date: 2024/2/26
 * @time: 0:04
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class VoReadyAppiont {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 病人id
     */
    private Long ptId;
    /**
     * 医生id
     */
    private Long drId;
    /**
     * 预计就诊时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date time;
    /**
     * 预计就诊时间段
     */
    private Integer stage;
    /**
     * 数据时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ctime;
    /**
     * 患者姓名
     */
    private String ptName;
    /**
     * 患者性别
     */
    private Integer ptGender;
    /**
     * 患者单位
     */
    private String ptEntName;
    /**
     * 患者年龄
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date ptBirth;
    /**
     * 患者编码
     */
    private String ptCode;
}
